Skip to content

Figure.coast/pygmt.grdlandmask/pygmt.select: Migrate the 'area_thresh' parameter to the new Alias System - #4822

Merged
seisman merged 6 commits into
mainfrom
AliasSystem/area_thresh
Aug 14, 2026
Merged

Figure.coast/pygmt.grdlandmask/pygmt.select: Migrate the 'area_thresh' parameter to the new Alias System#4822
seisman merged 6 commits into
mainfrom
AliasSystem/area_thresh

Conversation

@seisman

@seisman seisman commented Aug 12, 2026

Copy link
Copy Markdown
Member

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Aug 12, 2026
@seisman seisman added this to the 0.20.0 milestone Aug 12, 2026
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Aug 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the area_thresh parameter for Figure.coast, pygmt.grdlandmask, and pygmt.select from the legacy @use_alias(A="area_thresh") mechanism to the newer AliasSystem/Alias system, while updating related alias documentation text.

Changes:

  • Add explicit area_thresh parameters to coast, grdlandmask, and select, and wire them into AliasSystem as option A.
  • Remove A="area_thresh" from @use_alias where applicable and update the aliases section in docstrings accordingly.
  • Update the shared area_thresh common docstring snippet.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
pygmt/src/select.py Adds explicit area_thresh parameter and maps it to GMT option -A via AliasSystem.
pygmt/src/grdlandmask.py Removes @use_alias for A, adds explicit area_thresh, and documents aliases manually.
pygmt/src/coast.py Adds explicit area_thresh parameter and maps it to GMT option -A via AliasSystem.
pygmt/helpers/decorators.py Adjusts the shared COMMON_DOCSTRINGS["area_thresh"] snippet formatting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pygmt/src/coast.py
Comment thread pygmt/src/select.py
Comment thread pygmt/src/grdlandmask.py
@seisman
seisman merged commit 47138b1 into main Aug 14, 2026
22 of 23 checks passed
@seisman
seisman deleted the AliasSystem/area_thresh branch August 14, 2026 13:21
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants